package com.snail.springjpa.config;

import com.snail.springjpa.entity.Teacher;
import org.springframework.context.annotation.Bean;

/**
 * @title: MyConfig
 * @Author liwenbo
 * @Date: 2021/8/25 17:08
 */
public class MyConfig {
    MyConfig() {
        System.out.println("myconfig");
    }

    @Bean
    public Teacher teacher() {
        return new Teacher();
    }
}
